package com.rdxer.repository;

import com.rdxer.model.Answer;
import com.rdxer.model.AnswerOption;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface AnswerOptionRepository extends JpaRepository<AnswerOption,String>,JpaSpecificationExecutor<AnswerOption>{
    void deleteAllByAnswerSheetId(String answerSheetId);

    List<AnswerOption> findAllByAnswerId(String answerId);
}
